<?php

	//echo getPage("http://php.net/manual/en/function.curl-setopt.php");
	//echo getPage("https://www.facebook.com");
	//echo getPage("http://dev.en-view.com/enview/v1/admin/");
	//echo getPage("http://www.alexa.com");
	//echo getPage("http://www.google.com/search?q=curl#sthash.ZfiVNw5z.dpuf");
	echo getPage("http://www.google.co.in");
	
	function getPage($url){
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
		//curl_setopt($ch, CURLOPT_POST,1);
		//curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
		$result = curl_exec ($ch);
		curl_close ($ch);
		return $result;
	}
	
	

?>